<div class="row">	<div class="span8 offset2">		<?php	if (validation_errors() != "") {		$error_output = "";		$error_output = "<div class='alert alert-error'>";		$error_output .= "<button class='close' data-dismiss='alert'>×</button>";		$error_output .= '<h4 class="alert-heading">Form Errors</h4>';		$error_output .= validation_errors('<p class="error">');		$error_output .= "</div>";		echo $error_output;	}		?>

<?php
$attributes['class'] = "well form-horizontal";echo form_open((isset($id)) ? "category/edit/" . $id : "category/create",$attributes);echo "<legend>";echo (isset($id)) ? 'Update Category' : 'Create Category'; echo "</legend>";
echo "<div class='control-group'>";echo form_label('Name', 'name', array("class" => "control-label"));echo "<div class='controls'>";echo form_input('name', set_value('name', $category -> getName() ? $category -> getName() : ''));echo "</div>";echo "</div>";
echo "<div class='control-group'>";echo form_label('Name Clean', 'name_clean', array("class" => "control-label"));echo "<div class='controls'>";
echo form_input('name_clean', set_value('name_clean', $category -> getNameClean() ? $category -> getNameClean() : ''));echo "</div>";echo "</div>";
echo "<div class='control-group'>";echo form_label('Enabled', 'enabled', array("class" => "control-label"));echo "<div class='controls'>";echo form_checkbox('enabled', '', ($category -> getEnabled() && $category -> getEnabled() == 1) ? (boolean)$category -> getEnabled() : '');echo "</div>";echo "</div>";?>

<div class="form-actions">			<button type="submit" class="btn btn-primary">				<?php 								echo (isset($id)) ? 'Update Category' : 'Create Category';								?>			</button>			<button type="reset" class="btn">				Cancel			</button>		</div>


<?php
echo form_fieldset_close();?>

</div>
</div>